home *** CD-ROM | disk | FTP | other *** search
- /* strcat.c - concatenate 2 character strings.
- K & R page 44, using pointers.
- G. R. Mansfield. 84/06/06.
- Ver 1.0-4729.
- */
-
- int strcat(s, t) /* concatenate t to end of s; s must be large enough */
- char *s, *t;
- {
- while (*s) /* find end of t */
- s++;
- while (*s++ = *t++) /* copy t */
- ;
- }
-